<?php
$this->breadcrumbs = array(
    'Dating tips' => array('index'),
    'Create',
);
?>
<div class="box dark">
    <header>
        <h5>Manage dating tips</h5>
    </header>
    <div class="body">
	<?php
	$this->widget('bootstrap.widgets.TbGridView', array(
	    'id' => 'post-grid',
	    'dataProvider' => $model->search(),
	    'filter' => $model,
	    'columns' => array(
		'title',
		array(
		    'name' => 'time_created',
		    'value' => function($data) {
			return date('m-d-Y', $data->time_created);
		    },
		    'filter' => false
		),
		array(
		    'class' => 'bootstrap.widgets.TbButtonColumn',
		    'template' => '{update} {delete}'
		),
	    ),
	));
	?>
    </div>
</div>